package main
import "fmt"
func main() {
	var a = 1
	var b = 2
	fmt.Println("a =", a, "b =", b)
	swap(&a, &b)
	fmt.Println("a =", a, "b =", b)
}

func swap(a *int, b *int) {
	var temp = *a
	*a = *b
	*b = temp
}